﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CastingWellEquipmentGUI.Model
{
    /// <summary>
    /// 铸造记录表实体类
    /// </summary>
    public class CastNumberTable : ObservableObject
    {
        /// <summary>
        /// 铸造记录表
        /// 主键
        /// </summary>
        private int _CastId;
        /// <summary>
        /// 铸造记录表
        /// 主键
        /// </summary>
        public int CastId
        {
            get { return _CastId; }
            set
            {
                _CastId = value;
                RaisePropertyChanged(() => CastId);
            }

        }

        /// <summary>
        /// 铸造记录表
        /// 铸造编号
        /// </summary>
        private string _CastNumber;
        /// <summary>
        /// 铸造记录表
        /// 铸造编号
        /// </summary>
        public string CastNumber
        {
            get { return _CastNumber; }
            set
            {
                _CastNumber = value;
                RaisePropertyChanged(() => CastNumber);
            }

        }

        /// <summary>
        /// 铸造记录表
        /// 铸造开始时间
        /// </summary>
        private DateTime _CastStartTime;
        /// <summary>
        /// 铸造记录表
        /// 铸造开始时间
        /// </summary>
        public DateTime CastStartTime
        {
            get { return _CastStartTime; }
            set
            {
                _CastStartTime = value;
                RaisePropertyChanged(() => CastStartTime);
            }

        }

        /// <summary>
        /// 铸造记录表
        /// 铸造结束时间
        /// </summary>
        private DateTime _CastStopTime;
        /// <summary>
        /// 铸造记录表
        /// 铸造结束时间
        /// </summary>
        public DateTime CastStopTime
        {
            get { return _CastStopTime; }
            set
            {
                _CastStopTime = value;
                RaisePropertyChanged(() => CastStopTime);
            }

        }

        /// <summary>
        /// 铸造记录表
        /// 配方名称
        /// </summary>
        private string _RepiceName;
        /// <summary>
        /// 铸造记录表
        /// 配方名称
        /// </summary>
        public string RepiceName
        {
            get { return _RepiceName; }
            set
            {
                _RepiceName = value;
                RaisePropertyChanged(() => RepiceName);
            }

        }
        /// <summary>
        /// 铸造记录表
        /// 外键 依赖配方表主键
        /// </summary>
        private int _RecipeId;
        /// <summary>
        /// 铸造记录表
        /// 外键 依赖配方表主键
        /// </summary>
        public int RecipeId
        {
            get { return _RecipeId; }
            set
            {
                _RecipeId = value;
                RaisePropertyChanged(() => RecipeId);
            }
        }

        /// <summary>
        /// 铸造记录表
        /// 配方版本号
        /// </summary>
        private string _RepiceRevName;
        /// <summary>
        /// 铸造记录表
        /// 配方版本号
        /// </summary>
        public string RepiceRevName
        {
            get { return _RepiceRevName; }
            set
            {
                _RepiceRevName = value;
                RaisePropertyChanged(() => RepiceRevName);
            }
        }
    }
}
